{if $category}<a href="admin/modules/tangra_cms/category/category_content.php?category={$category->get_id()}" class="action_back">Back to virtual pages in category &quot;{$category->get_title()}&quot;</a>{else}<a href="admin/modules/tangra_cms/vpage/vpages.php" class="action_back">Back to virtual pages list</a>{/if}
<br /><br />

{if $items_linking_to_vpage}
<span class="status_warning">
WARNING: There are menu item(s) that link to this virtual page.<br />
</span>
<br />
Menu items linked to this virtual page:
<ul>
{foreach from=$items_linking_to_vpage item=r}
	<li>
    	{foreach from=$r item=i name=item_loop}
        {if $smarty.foreach.item_loop.first}
        	<a href="admin/modules/tangra_cms/menu/menu_manage.php?manage={$i.id}">{$i.title}</a>
        {else}
        	<a href="admin/modules/tangra_cms/menu/item_types/menu_item_vpage_manage.php?manage={$i.id}&amp;_transit_menu={$i.menu_id}">{$i.label}</a>
        {/if}
        {if !$smarty.foreach.item_loop.last} > {else}{if $i.published}(published){else}(not published){/if}{/if}
        {/foreach}
    </li>
{/foreach}
</ul>
<br /><br /><br />
{/if}


<table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td>
      <table border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td width="22"><img src="img/modules/crystal_icons_small/22x22/msg_question.png" alt="Question icon" /></td>
          <td align="left" valign="middle">Are you sure that you want to <strong>delete</strong> virtual page with ID {$vpage->get_id()}?</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center">
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
		{if $items_linking_to_vpage}                  
          <td align="left" height="16" valign="middle">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
						<div class="action_yes"><a href="admin/modules/tangra_cms/vpage/vpage_del.php?del_confirmed={$vpage->get_id()}&mi=1">Yes and delete menu items</a> OR</div>                                
                    </td>
                </tr>
                <tr>
                  <td align="left" height="16" valign="middle">
                    <div class="action_yes"><a href="admin/modules/tangra_cms/vpage/vpage_del.php?del_confirmed={$vpage->get_id()}&mi=2">Yes and unpublish menu items</a></div>            
                  </td>
                </tr>
            </table>
          </td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          {else}
            <td>
    	        <div class="action_yes"><a href="admin/modules/tangra_cms/vpage/vpage_del.php?del_confirmed={$vpage->get_id()}">Yes</a></div>            
            </td>
          {/if}            
          <td width="100">&nbsp;</td>
          <td align="right" height="16">
            <div class="action_cancel">
            	{if $category}<a href="admin/modules/tangra_cms/category/category_content.php?category={$category->get_id()}">{else}<a href="admin/modules/tangra_cms/vpage/vpages.php">{/if}Cancel</a>
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
